import sys
sys.path.insert(0, './development')
from Converters import universal_converter

for format in [universal_converter.MilcField,
               universal_converter.QioField,
               universal_converter.ILDGField,
               universal_converter.Nersc3x3Field,
               universal_converter.Nersc3x2Field]:
    f = format(open('/home/brian/diffout','rb'))
    found_format = False
    try:
        f.get_header()
        print 'Format is: ', format
        found_format = True
    except Exception as e:
        print e

if not found_format:
    print 'could not read file'
else:
    print 'read file successfully'
